package com.powernode.service;

import com.powernode.domain.Basket;
import com.baomidou.mybatisplus.extension.service.IService;
import com.powernode.vo.CartTotalAmount;
import com.powernode.vo.CartVo;

import java.util.List;

public interface BasketService extends IService<Basket>{

    Integer queryMemberBasketProdCount(String openId);

    /**
     * 查询会员购物车列表
     * @param openId
     * @return
     */
    CartVo queryMemberCartVo(String openId);

    CartTotalAmount calculateMemberCheckedBasketTotalAmount(List<Long> basketIds);

    Boolean changeCartItem(Basket basket);
}
